package br.com.atid.model.constants
{
	import flash.geom.Point;

	public class Constants
	{

		// File menu
		public static const _FILE:String="File";
		public static const _NEW:String="New";
		public static const _OPEN:String="Open";
		public static const _CLOSE:String="Close";
		public static const _CLOSE_ALL:String="Close all";
		public static const _SAVE:String="Save";
		public static const _PRINT:String="Print";

		// View menu
		public static const _VIEW:String="View";
		public static const _FULL_SCREEN:String="Fullscreen";

		// Draw menu
		public static const _DRAW:String="Draw";
		public static const _SELECT:String="Select";
		public static const _OPEN_HAND:String="Open hand";
		public static const _CLOSE_HAND:String="Close hand";
		public static const _ZOOM:String="Zoom";
		public static const _ACTIVITY:String="Activity";
		public static const _COMPOSED_ACTIVITY:String="Composed Activity";
		public static const _TRANSITION:String="Transition";
		public static const _ARC:String="Arc";
		public static const _EVENT:String="Event";
		public static const _REPOSITORY:String="Repository";
		public static const _DELETE:String="Delete";

		// Help menu
		public static const _HELP:String="Help";

		// Others
		public static const _BLOCKED:String="Blocked";
		public static const _MOVE:String="Move";
		public static const _ALPHA_ELEMENT_NAME:Number=0.5;

		// Activity Constants
		public static const _ACTIVITY_OUTER_RADIUS:int=20;
		public static const _ACTIVITY_INNER_RADIUS:int=12;
		public static const _ACTIVITY_VERTICAL_OFFSET:Number=-20;
		public static const _ACTIVITY_HORIZONTAL_OFFSET:Number=-28;
		
		public static const _ANCHOR_DISTANCE:int=80;

		// Composed Activity Constants
		public static const _COMPOSED_ACTIVITY_OUTER_RADIUS:int=20;
		public static const _COMPOSED_ACTIVITY_MIDLE_RADIUS:int=15;		
		public static const _COMPOSED_ACTIVITY_INNER_RADIUS:int=10;	
		public static const _COMPOSED_ACTIVITY_VERTICAL_OFFSET:Number=-20;
		public static const _COMPOSED_ACTIVITY_HORIZONTAL_OFFSET:Number=-61;		

		// Transition Constants
		public static const _TRANSITION_WIDTH:int=10;
		public static const _TRANSITION_HEIGTH:int=30;
		public static const _TRANSITION_VERTICAL_OFFSET:Number=-22;
		public static const _TRANSITION_HORIZONTAL_OFFSET:Number=-35;		
		
		// Condition Box
		public static const _CONDITION_INDICATOR_COLOR:uint=0x00FF00;	
		public static const _CONDITION_BOX_WIDTH:int=200;
		public static const _CONDITION_BOX_HEIGTH:int=150;
		
		// Event Constants
		public static const _EVENT_WIDTH:int=30;
		public static const _EVENT_VERTICAL_OFFSET:Number=-12;
		public static const _EVENT_HORIZONTAL_OFFSET:Number=-18;
		
		// Repository Constants
		public static var _REPOSITORY_RADIUS:int=15;		
		public static const _REPOSITORY_VERTICAL_OFFSET:Number=-20;
		public static const _REPOSITORY_HORIZONTAL_OFFSET:Number=-42;
		
		// Color and transparence value for shape that is the first
		public static const _COLOR_FIRST_ELEMENT:uint=0xAAAAAA;
		public static const _ALPHA_FIRST_ELEMENT:Number=1;

		// Color and transparence value for shape that appears when an graphical element is selected 
		public static const _COLOR_SHAPE_SELECTED:uint=0x0000FF;
		public static const _ALPHA_SELECTED:Number=0.3;

		// Color and transparence value for deadzone shape that limits area that a new graphical element can be placed
		public static const _COLOR_DEADZONE_SHAPE:uint=0xff9600;
		public static const _ALPHA_DEADZONE_SHAPE:Number=0.5;

		// Initial Point (referenca for creation of initial components)
		private static const initialPoint:Point=new Point(50, 50);
		public static const activityInitialPoint:Point=initialPoint;
		public static const transitionInitialPoint:Point=new Point(initialPoint.x + 60, initialPoint.y);
		
		// Colors
		public static const _WHITE:uint=0xFFFFFF;
		public static const _BLACK:uint=0x000000;
		
		public static const _THICKNESS:Number=1;
		
		// Color glow filter
		public static const _COLOR_GLOW_FILTER:uint=0x00FFFF;
	}
}
